﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data;
using Structure.Objects;

namespace Structure.Interfaces
{
    public interface iCommand
    {
        DataTable ProjectList();
        void DeleteProject(string id_project);
        void AddProject(Project p);
        void UpdateProject(string id_project, Project p);
        DataTable SelectProject(int id_project);
        Project GetProject(string id_project);

        DataTable UserList();
        void AddUser(User u);
        void DeleteUser(string index);
        void AddUserInProject(string id_user, string id_project);
        void DeleteUserFromProject(string id_user, string id_project);
        DataTable GetAllUsersInProjects(string id_project);        

        DataTable TaskList();
        DataTable SelectTask(int id_task);
        void DeleteTask(string id_task);
        void AddTask(Task t);

        string Login(string pLogin, string pPass, ref string pFio);

        void UpdateTask(string id_task, Task p);      
        Task GetTask(string id_task);
    }
}
